<?php
$form = $this->beginWidget('CActiveForm', array(
    'id'                     => 'members-form',
    'enableAjaxValidation'   => false,
    'enableClientValidation' => false,
    'focus'                  => array($model, 'email'),
    'errorMessageCssClass' => 'error',
    'htmlOptions'          => array(
        'class'   => 'form',
    ),
));
?>

<fieldset>
    <ul>
        <li>
            <?php
                $attrName = 'email';
                echo $form->labelEx($model, $attrName, array(
                    'class' => 'desc'
                ));
            ?>
            <div><?php
                echo $form->textField($model, $attrName, array(
                    'class' => 'text medium'));

                echo $form->checkbox($model, 'activated_flag');
                echo CHtml::label($model->getAttributeLabel('activated_flag'), 
                    'DMembers_activated_flag', array(
                        'style' => 'display:inline-block; font-weight:900;'
                ));
                echo $form->error($model, $attrName);
            ?></div>
        </li>
        
        <li>
            <?php
                $attrName = 'password';
                echo $form->labelEx($model, $attrName, array(
                    'class' => 'desc'
                ));
            ?>
            <div><?php 
                echo $form->passwordField($model, $attrName, array(
                    'class' => 'text medium'));
                echo $form->error($model, $attrName);
            ?></div>
        </li>
        
        <li>
            <?php
                $attrName = 're_password';
                echo $form->labelEx($model, $attrName, array(
                    'class' => 'desc'
                ));
            ?>
            <div><?php 
                echo $form->passwordField($model, $attrName, array(
                    'class' => 'text medium'));
                echo $form->error($model, $attrName);
            ?></div>
        </li>
        
        <li>
            <?php
                $attrName = 'full_name';
                echo $form->labelEx($model, $attrName, array(
                    'class' => 'desc'
                ));
            ?>
            <div><?php 
                echo $form->textField($model, $attrName, array(
                    'class' => 'text medium'));
                echo $form->error($model, $attrName);
            ?></div>
        </li>
        
        <li>
            <?php
                $attrName = 'job';
                echo $form->labelEx($model, $attrName, array(
                    'class' => 'desc'
                ));
            ?>
            <div><?php 
                echo $form->textField($model, $attrName, array(
                    'class' => 'text medium'));
                echo $form->error($model, $attrName);
            ?></div>
        </li>
        
        <li>
            <?php
                $attrName = 'phone';
                echo $form->labelEx($model, $attrName, array(
                    'class' => 'desc'
                ));
            ?>
            <div><?php 
                echo $form->textField($model, $attrName, array(
                    'class' => 'text medium'));
                echo $form->error($model, $attrName);
            ?></div>
        </li>
        
        <li>
            <?php
                $attrName = 'address';
                echo $form->labelEx($model, $attrName, array(
                    'class' => 'desc'
                ));
            ?>
            <div><?php 
                echo $form->textField($model, $attrName, array(
                    'class' => 'text medium'));
                echo $form->error($model, $attrName);
            ?></div>
        </li>
        
        <!-- buttons -->
        <li style="text-align: center;"><?php
            echo CHtml::submitButton($model->isNewRecord ? 'CREATE' : 'SAVE', array(
                'name'  => 'submit',
                'class' => 'ui-state-default ui-corner-all ui-button'
            ));
            echo CHtml::button('RESET', array(
                'id'    => 'btn-reset',
                'class' => 'ui-state-default ui-corner-all ui-button',
                'style' => 'margin:0 10px;',
            ));
            echo CHtml::button('CANCEL', array(
                'class' => 'ui-state-default ui-corner-all ui-button btn-cancel'
            ));
        ?></li>
        <!-- //buttons -->
    </ul>
</fieldset>

<?php $this->endWidget(); ?>